package com.usian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.common.model.competition.CompetitionHistory;

import java.util.List;

/**
 * @projectName: 2210A-project1
 * @package: com.usian.service
 * @className: CompetitionHistoryService
 * @author: 莫洪维
 * @email: 1204315800@qq.com
 * @description: TODO
 * @date: 2023/8/29 16:56
 */
public interface CompetitionHistoryService extends IService<CompetitionHistory> {

    /**
     * 通过试卷id查询完成试题
     * @param competitionHistory
     * @return
     */
    public List<CompetitionHistory> toHistory(CompetitionHistory competitionHistory);

    /**
     * 通过试卷id查询完成试题数量
     * @param competitionHistory
     * @return
     */
    public Integer toHistoryNum(CompetitionHistory competitionHistory);
}
